import Vue from "vue";
import VueRouter from "vue-router";
import Login from "../views/Login.vue";
import register from "../views/register.vue";
import index from "../views/index.vue";

import appointment from "../views/homePage/appointment.vue";
import medicalCase from "../views/homePage/medicalCase.vue";
import modifyCase from "../views/homePage/modifyCase.vue";
import addCase from "../views/homePage/addCase.vue";

import evaluation from "../views/more/evaluation.vue";
import userSetUp from "../views/more/userSetUp.vue";


import PatientManagement from "../views/PatientManagement/PatientManagement.vue";
import patientMore from "../views/PatientManagement/patientMore.vue";
import addInfor from "../views/PatientManagement/addInfor.vue";

import search from "../views/search/search.vue";

import bedSearch from "../views/search/bedSearch.vue";
import diagnostic from "../views/search/diagnostic.vue";
import drugsSearch from "../views/search/drugsSearch.vue";
import PatientIndex from "../views/CostManagement/PatientIndex.vue";
import SettlementCost from "../views/CostManagement/SettlementCost.vue";
import addExpense from "../views/CostManagement/addExpense.vue";

import DrugMain from "../views/DrugManage/DrugMain.vue";
import DrugManage from "../views/DrugManage/DrugManage.vue";
import addDrug from "../views/DrugManage/addDrug.vue";
import DrugRecord from "../views/DrugManage/DrugRecord.vue";
import Warehousing from "../views/DrugManage/Warehousing.vue";
import record from "../views/DrugManage/record.vue";

import Navigation from "../views/Service/Navigation.vue";
import hospitalization from "../views/Service/hospitalization.vue";
import examination from "../views/Service/examination.vue";
import System from "../views/Service/System.vue";
import Prescribe from "../views/Service/Prescribe.vue";


import staffManage from "../views/StaffManagement/staffManage.vue";

import report from "../views/report/report.vue";


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Login",
    component: Login,
  }, {
    path: "/Login",
    redirect: './'
  },
  {
    path: "/register",
    name: "register",
    component: register,
  },
  {
    path: "/index",
    name: "index",
    component: index,
  }, {
    path: "/search",
    name: "search",
    component: search,
  }, {
    path: "/appointment",
    name: "appointment",
    component: appointment,
  }, {
    path: "/evaluation",
    name: "evaluation",
    component: evaluation,
  }, {
    path: "/record",
    name: "record",
    component: record,
  }, {
    path: "/PatientManagement",
    name: "PatientManagement",
    component: PatientManagement,
  },
  {
    path: "/bedSearch",
    name: "bedSearch",
    component: bedSearch,
  },
  {
    path: "/diagnostic",
    name: "diagnostic",
    component: diagnostic,
  }, {
    path: "/patientMore",
    name: "patientMore",
    component: patientMore,
  },
  {
    path: "/drugsSearch",
    name: "drugsSearch",
    component: drugsSearch,
  },
  {
    path: "/PatientIndex",
    name: "PatientIndex",
    component: PatientIndex,
  }, {
    path: "/SettlementCost",
    name: "SettlementCost",
    component: SettlementCost,
  }, {
    path: "/DrugManage",
    name: "DrugManage",
    component: DrugManage,
  },
  {
    path: "/Navigation",
    name: "Navigation",
    component: Navigation,
  },
  {
    path: "/hospitalization",
    name: "hospitalization",
    component: hospitalization,
  },
  {
    path: "/examination",
    name: "examination",
    component: examination,
  },
  {
    path: "/System",
    name: "System",
    component: System,
  },
  {
    path: "/medicalCase",
    name: "medicalCase",
    component: medicalCase,
  },
  {
    path: "/addCase",
    name: "addCase",
    component: addCase,
  },
  {
    path: "/userSetUp",
    name: "userSetUp",
    component: userSetUp,
  }, {
    path: "/modifyCase",
    name: "modifyCase",
    component: modifyCase,
  }, {
    path: "/addInfor",
    name: "addInfor",
    component: addInfor,
  }, {
    path: "/addExpense",
    name: "addExpense",
    component: addExpense,
  }, {
    path: "/staffManage",
    name: "staffManage",
    component: staffManage,
  }, {
    path: "/report",
    name: "report",
    component: report,
  }, {
    path: "/DrugMain",
    name: "DrugMain",
    component: DrugMain,
  },
  {
    path: "/addDrug",
    name: "addDrug",
    component: addDrug,
  },
  {
    path: "/DrugRecord",
    name: "DrugRecord",
    component: DrugRecord,
  }, {
    path: "/Warehousing",
    name: "Warehousing",
    component: Warehousing,
  },
  {
    path: "/Prescribe",
    name: "Prescribe",
    component: Prescribe,
  },



];

const router = new VueRouter({
  routes,
});

export default router;
